<template>
	<view>
		<button @click="goBack">返回</button>
		<image src="../../static/logo.png" mode=""></image>
		<h5>{{detail.name}}</h5>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:{}
			};
		},
		onLoad(options) {
			console.log(options);
			uni.request({
				url:"http://elm.cangdu.org/shopping/restaurant/"+ options.id,
				success: (res) => {
					console.log(res);
					this.detail = res.data
					
				}
			})
			
		},
		methods:{
			goBack(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">

</style>
